﻿/*
 ***************************************************************************
 * Microsoft Visual C# .NET
 * 名称：       App_Input_HapppyActionDetailForm
 * 类型：       控制层
 * 功能说明：   快乐管家-活动计划详细popup页面
 * 作者：       章 昕
 * 创建日期：   2007/11/07
 * 修改日期     修改者      修改内容
 * 
 * 
 * ---
 ***************************************************************************
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Globalization;
using Shpm.App.Commons.Utils;
using Shpm.App.Input.Bean;
using Shpm.App.Input.Dao;
using log4net;

public partial class App_Input_HapppyActionDetailForm : System.Web.UI.Page
{
    // log
    protected static ILog log = LogManager.GetLogger(typeof(App_Input_HapppyActionDetailForm));

    public String actionName = string.Empty;   
    public String content = string.Empty;

    // page load
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            ViewState["ACTION_ID"] = (string)Request.QueryString["ACTION_ID"];
        }

        if (!string.IsNullOrEmpty(Convert.ToString(ViewState["ACTION_ID"])))
        {
            HappyPlanDao dao = new HappyPlanDao();
            HappyPlanBean bean = new HappyPlanBean();

            bean.ActionId = Convert.ToInt32(ViewState["ACTION_ID"]);
            bean = dao.FindHappyPlan(bean);
            if (bean != null)
            {
                this.actionName = bean.ActionName;
                this.content = bean.ActionContent;
            }
        }
        
    }

}
